<div class="jobs form">
	<h2><?php  echo __('Add Job');?></h2>
	<div class="clear"></div>
	<div class="actions selected">
		<?php $project_id = $this->Form->value('Project.project_id'); if(!empty($project_id)) echo $this->Html->link(__('Cancel'), array('controller'=>'projects','action' => 'view',$project_id));?>
	</div>
	<div class="clear"></div>
	
<?php echo $this->Form->create('Job');?>
	<fieldset>
	<?php
		echo $this->Form->input('parent_id',array('options'=>$parentJobs,'empty'=>'','label'=>__('tasks currently performed')));
		echo $this->Form->input('group_id',array('empty'=>'','label'=>__('group of employees')));
		echo $this->Form->input('User',array('label'=>__('employees'),'empty'=>''));			
		echo $this->Form->input('description');
		echo $this->Form->input('priorytet',array('options'=>array(1=>1,2=>2,3=>3,4=>4,5=>5)));		
		echo $this->Form->input('date_start');
		echo $this->Form->input('date_end');
		echo $this->Form->input('status',array('type'=>'checkbox'));
		echo $this->Form->input('nouts',array('label'=>__('Notes',true)));
		if(isset($this->passedArgs['p']) && !empty($this->passedArgs['p'])) echo $this->Form->input('Project');
		if(isset($this->passedArgs['d']) && !empty($this->passedArgs['d'])) echo $this->Form->hidden('Domain');
		
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</div>
<div class="actions">
	<?php echo $this->element('/menu/main')?>
	<?php echo $this->element('/menu/settings')?>
</div>
